/**************************************************
 * norecoil.cpp
 **************************************************/

#include "norecoil.h"
#include "main.h"
#include "globals.h"

bool isNoRecoilEnabled = false;

void noRecoilEnable()
{
	if (!isNoRecoilEnabled) {
		isNoRecoilEnabled = true;
		WriteMemory(dwNoRecoil, nopFive, 5);
	}
}

void noRecoilDisable()
{
	if (isNoRecoilEnabled) {
		isNoRecoilEnabled = false;
		WriteMemory(dwNoRecoil, bNoRecoil, 5);
	}
}

void noRecoilToggle()
{
	if (isNoRecoilEnabled)
		noRecoilDisable();
	else
		noRecoilEnable();
}